package com.atomos.strategy.action
{
	import com.bourre.collection.Stack;
	import com.atomos.particle.Particle;
	import com.bourre.collection.Iterator;
	import com.atomos.log.AtomosDebug;

	public class StackAction extends Stack implements ActionStrategy
	{
		public function StackAction()
		{
			super( ActionStrategy );
		}
		
		public function prepareAction(time:Number):void
		{
			var i : Iterator = iterator();
			
			while( i.hasNext() )
			{
				( i.next() as ActionStrategy ).prepareAction( time );
			}
		}
		
		public function process(particle:Particle):void
		{
			var i : Iterator = iterator();
			
			while( i.hasNext() )
			{
				( i.next() as ActionStrategy ).process( particle );
			}
		}
		
	}
}